package edu.br.easyphone.server;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

import edu.br.easyphone.resources.ContatoResource;

@ApplicationPath("resource")
public class App extends Application{
	private final Set<Class<?>> classes;
		 
	public App() {
		HashSet<Class<?>> c = new HashSet<Class<?>>();
        c.add(ContatoResource.class);
        classes = Collections.unmodifiableSet(c);
	}

	@Override
	public Set<Class<?>> getClasses() {
		return classes;
	}   
}